package main

import (
	"cachecron/global"
	"cachecron/service/cache_service"
	"cachecron/task/cache"
	"cachecron/utils"
	"fmt"
)

func main() {
	global.App.Viper = utils.SystemInit()
	global.App.Redis = utils.ExampleNewClient()
	global.App.DB = utils.InitMysql()
	// 服务端程序
	go cache_service.StartService()
	cache.StartCache() // 客户端程序
	fmt.Println("程序结束")
}
